//
// Created by ZhuanZ（无密码） on 2025/2/5.
//
#include "stdio.h"
#define X 3
#define Y 3
int main()
{
    int i = 0;
    int j = 0;
    int result = 0;
    int arr[X][Y] = {
            {1,2,3},
            {3,5,6},
            {7,3,9}
    };
    for (i = 0; i < X; i++) {
        for(j = 0; j < Y ;j++)
        {
            if(i == j){
                result = arr[i][j] + result;
            }
        }
    }
    printf("%d",result);
}